/**************************************************************************
 *
 *                Admin Over IM
 *
 **************************************************************************
 *  <Copyright>
 *    Copyright (C) 2008  Basov Alexander
 *
 *  <Unit> jmessage.h
 *    <Purpose>
 *    <Effects>
 *    <Perfomance>
 **************************************************************************
 *  $Revision: 113 $ $Author: F0boS $
*  $Date: 2008-03-10 19:59:35 +0300 (Вск, 10 Мар 2008) $
  **************************************************************************/

#ifndef __JMESSAGE_H_
#define __JMESSAGE_H_

#include <string>

class JMessage
{
public:
  JMessage (const xmlChar **attributes);
  void setFrom (const std::string);
  void setTo (const std::string);
  void setId (const std::string);
  void setType (const std::string);
  void setLang (const std::string);
  void setSubject (const std::string);
  void setBody (const std::string);
  void setThread (const std::string);
  inline std::string getFrom (void) {return from;}
  inline std::string getTo (void) {return to;}
  inline std::string getId (void) {return id;}
  inline std::string getType (void) {return type;}
  inline std::string getLang (void) {return lang;}
  inline std::string getSubject (void) {return subject;}
  inline std::string getBody (void) {return body;}
  inline std::string getThread (void) {return thread;}

private:
  std::string from, to, id, type, lang, subject,
              thread, body;
};

#endif
